package com.juyu.miliao.api.dao.mysql;

import com.juyu.miliao.api.domain.GameNoobMission;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author jh
 * @date 2019/09/16
 */
@Repository
public class GameNoobMissionDao {
    @Resource
    private SqlSession sqlSession;

    public GameNoobMission getGameNoobMissionByUserId(Long id) {
        return sqlSession.selectOne("getGameNoobMissionByUserId", id);
    }

    public int saveOrUpdateGameNoobMission(GameNoobMission obj) {
        return sqlSession.update("saveOrUpdateGameNoobMission", obj);
    }


}


  